package ke02.am;

public class Lotto {
	private int[] myFeld = new int[6];

	public int[] zieheLotto() {
		myFeld[0] = 5;
		myFeld[1] = 35;
		myFeld[2] = 17;
		myFeld[3] = 49;
		myFeld[4] = 28;
		myFeld[5] = 7;
		return myFeld;
	}

	public int liefereZahl(int position) {
		return myFeld[position];
	}

	public boolean ersetzeZahl(int position, int neu) {
		if (position > 0 && position < myFeld.length) {
			myFeld[position] = neu;
			return true;
		}
		return false;
	}
}